// 系统信息工具类（/utils/system.js）
export default {
  getSystemData() {
    const sys = uni.getSystemInfoSync()
    const { platform, safeArea, statusBarHeight } = sys || {}
    const isIOS = platform === 'ios'
    const isAndroid = platform === 'android'

    return {
      statusBarHeight: statusBarHeight,
      navBarHeight: isIOS ? 44 : 48 + statusBarHeight,
      safeAreaInsets: safeArea?.insets || { top: 0, bottom: 0 },
      isDynamicIsland: isIOS && statusBarHeight > 50
    }
  }
}
